package uit.net.core.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Entity
@Table(name="EnglishByAudio")
@NamedQueries(
        {
            @NamedQuery(name=EnglishByAudio.FIND_BY_TITLE,query="SELECT o FROM EnglishByAudio o WHERE title = :title")
        }
        )
public class EnglishByAudio {
    public static final String FIND_BY_TITLE="EnglishByAudio.findByTitle";
    public static final String PARA_TITLE="title";
    
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name = "id")
    private long id;
    
    @NotNull
    @Size(max=300)
    @Column(name="title")
    private String title;
    
    @Column(name="audioFilePath")
    private String audioFilePath;
    
    @Column(name="textFilePath")
    private String textFilePath;
    
    
    public EnglishByAudio() {
        super();
    }
    public EnglishByAudio(long id, String title, String audioFilePath,
            String textFilePath) {
        super();
        this.id = id;
        this.title = title;
        this.audioFilePath = audioFilePath;
        this.textFilePath = textFilePath;
    }
    public long getId() {
        return id;
    }
    public void setId(long id) {
        this.id = id;
    }
    public String getTitle() {
        return title;
    }
    public void setTitle(String title) {
        this.title = title;
    }
    public String getAudioFilePath() {
        return audioFilePath;
    }
    public void setAudioFilePath(String audioFilePath) {
        this.audioFilePath = audioFilePath;
    }
    public String getTextFilePath() {
        return textFilePath;
    }
    public void setTextFilePath(String textFilePath) {
        this.textFilePath = textFilePath;
    }
    

}
